﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TeamBuy.AccessWebUI.Components.DefaultPages
{
    public partial class Main_ShareLink : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (TeamBuySession.IsUserLoggedIn == true)
            {
                txtShareLink.Text = "http://" + TeamBuy.AccessService.TeamBuySystemInfo.SiteDomain + "/?i=" + Common.PublicFunction.DESEncrypt(Convert.ToString(Session["UserID"]));
            }
            else
            {
                txtShareLink.Text = "http://" + TeamBuy.AccessService.TeamBuySystemInfo.SiteDomain + "/";
            }
        }
    }
}